﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;

namespace WebAPI_DEMO.Models
{
    public class AddGood2
    {
        [Required(ErrorMessage = "产品名称不为空")]
        [StringLength(50)]
        public string Name { get; set; }
        [Required]
        public string Cover { get; set; }
        public int Stock { get; set; }
        [Range(0, 999.99)]
        public decimal Price { get; set; }
        [Required]
        public int CateId { get; set; }
    }
}
